var drawingScaleElement = document.querySelector("#drawing-scale");
drawingScaleElement.addEventListener("click", changeValue);

function changeValue() {
  //   console.log("Change!");
  var drawingScale = parseInt(
    drawingScaleElement.options[drawingScaleElement.selectedIndex].value
  );
  if (drawingScale == 1) {
    document.getElementsByName("text-input")[0].value = 60;
    document.getElementsByName("line-style")[0].value = 7;
  } else if (drawingScale == 10) {
    document.getElementsByName("text-input")[0].value = 18;
    document.getElementsByName("line-style")[0].value = 5;
  } else if (drawingScale == 100) {
    document.getElementsByName("text-input")[0].value = 1;
    document.getElementsByName("line-style")[0].value = 2;
  }
}
